package com.wh.dao;

import com.github.pagehelper.Page;
import com.wh.pojo.Dept;

import java.util.List;

//@Component
public interface DeptDao {
    //@Insert("insert into dept(name,state,remark) values(#{name},#{state},#{remark})")

    List<Dept> findAll();

    public Page<Dept> selectByCondition(String queryString);

    void add(Dept dept);

    void edit(Dept dept);

    Dept findById(Integer id);

    void deleteById(Integer id);
}
